<template>
	<view>
		<image src="/static/my/tbg.png" class="bg" mode=""></image>
		<view class="">
			<plhead :height="headh"></plhead>
			<view class="top">
				<u-status-bar bgColor="#f8f8f8"></u-status-bar>
				<view class="head" :style="{height:headh}">
					<image src="/static/my/title.png" class="head__title" mode=""></image>
				</view>
			</view>
		</view>
		<view class="userinfo">
			<image src="/static/logo.png" class="userinfo__tx" mode="aspectFill"></image>
			<view class="">
				<view class="userinfo__name">
					181****8437
					<image src="/static/my/m.png" class="userinfo__m" mode=""></image>
				</view>
				<view class="userinfo__id">
					欢迎登录使用共享电工
				</view>
			</view>
		</view>
		<view class="con">
			<image src="/static/my/rz.png" class="rz" mode=""></image>
			<view class="box u-flex u-flex-y-center" style="margin-bottom: 18rpx;">
				<view class="box__item" v-for="(item,index) in list1" :key="index">
					<view class="box__item__iconbox">
						<image :src="'/static/my/'+item.icon+'.png'" :style="item.sty" mode=""></image>
					</view>
					<view class="box__item__text">
						{{item.text}}
					</view>
				</view>
			</view>
			<u-swiper :list="list2" height="143rpx" radius='20rpx'></u-swiper>
			<view class="box" style="padding: 40rpx 0 2rpx;margin-top: 18rpx;">
				<view class="box__gl" v-for="(item,index) in gllist" :key="index"  @click="navto(item.url)">
					<view class="box__gl__icon">
						<image :src="'/static/my/'+item.icon+'.png'" :style="item.sty" mode=""></image>
					</view>
					<view class="box__gl__label">
						{{item.text}}
					</view>
					<image src="/static/my/more.png" class="box__gl__more" mode=""></image>
				</view>
			</view>
		</view>

		<tabbar :current="2"></tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				headh: '103rpx',
				list1:[
					{text:'我的钱包',icon:'qb',sty:'width: 60rpx;height: 53rpx;',url:''},
					{text:'我的资料',icon:'zl',sty:'width: 51rpx;height: 54rpx;',url:''},
					{text:'银行卡管理',icon:'bank',sty:'width: 55rpx;height: 46rpx;',url:''},
					{text:'关于我们',icon:'gy',sty:'width: 54rpx;height: 54rpx;',url:''},
				],
				list2:['/static/homed/banner.png'],
				gllist:[
					{text:'修改密码',icon:'ps',sty:'width: 37rpx;height: 40rpx;',url:''},
					{text:'在线客服',icon:'kf',sty:'width: 45rpx;height: 42rpx;',url:''},
					{text:'意见反馈',icon:'yj',sty:'width: 36rpx;height: 34rpx;',url:''},
					{text:'设置',icon:'z3',sty:'width: 37rpx;height: 40rpx;',url:''},
					{text:'切换',icon:'z3',sty:'width: 37rpx;height: 40rpx;',url:'/pages/index/index'},
					
				]
			};
		},
		onLoad() {
			uni.hideTabBar()
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f8f8f8;
	}

	.head {
		display: flex;
		align-items: center;
		padding: 0 30rpx;
		&__title {
			width: 64rpx;
			height: 32rpx;
		}
	}

	.userinfo {
		padding: 11rpx 30rpx 41rpx;
		display: flex;
		align-items: center;
		position: relative;

		&__m {
			width: 32rpx;
			height: 32rpx;
			margin-left: 10rpx;
		}

		&__tx {
			width: 130rpx;
			height: 130rpx;
			margin-right: 24rpx;
			border-radius: 50%;
		}

		&__name {
			font-family: PingFang-SC, PingFang-SC;
			font-weight: 800;
			font-size: 32rpx;
			color: #000000;
			line-height: 32rpx;
			display: flex;
			align-items: center;

		}

		&__id {
			font-family: PingFang-SC, PingFang-SC;
			font-weight: bold;
			font-size: 24rpx;
			color: #716D6D;
			line-height: 24rpx;
			margin-top: 20rpx;
		}
	}

	.con {
		padding: 0 30rpx 0 30rpx;
	}

	.box {
		background: #FFFFFF;
		border-radius: 20rpx 20rpx 20rpx 20rpx;

		&__item {
			width: 25%;
			padding: 31rpx 0 39rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;

			&__text {
				font-family: PingFang-SC, PingFang-SC;
				font-weight: bold;
				font-size: 26rpx;
				color: #060606;
				line-height: 26rpx;
			}

			&__iconbox {
				height: 96rpx;
				display: flex;
				align-items: center;
			}

		}
		&__gl{
			display: flex;
			align-items: center;
			margin-bottom: 56rpx;
			&__icon{
				width: 76rpx;
				display: flex;
				align-items: center;
				justify-content: center;
			}
			&__label{
				font-family: PingFang-SC, PingFang-SC;
				font-weight: bold;
				font-size: 27rpx;
				color: #030606;
				line-height: 27rpx;
				flex: 1;
			}
			&__more{
				width: 13rpx;
				height: 23rpx;
				margin-right: 25rpx;
			}
		}
	}

	.bg {
		width: 601rpx;
		height: 464rpx;
		position: fixed;
		top: 0;
		right: 0;
	}

	.rz {
		width: 690rpx;
		height: 127rpx;
	}
</style>